package event 
{
	import flash.events.Event;
	/**
	 * ...
	 * @author carlor
	 */
	public class SocketEvent extends CommEvent 
	{
		//socket关闭事件名
		public static const SOCKET_CLOSE :String = "MY_SOCKET_CLOSE";
		//socket连接事件名
		public static const SOCKET_CONNECT :String = "MY_SOCKET_CONNECT";
		//socket的IO错误事件名
		public static const SOCKET_IO_ERROR :String = "MY_SOCKET_IO_ERROR";
		//socket的SECURITY错误事件名
		public static const SOCKET_SECURITY_ERROR :String = "MY_SOCKET_SECURITY_ERROR";
		//socket数据事件名
		public static const SOCKET_DATA :String = "MY_SOCKET_DATA";
		//socket数据事件名
		public static const SOCKET_DATA_HANDSHAKE :String = "MY_SOCKET_DATA_HANDSHAKE";
		//socket数据错误事件名
		public static const SOCKET_DATA_ERROR :String = "MY_SOCKET_DATA_ERROR";
		//连接超时事件名
		public static const SOCKET_TIME_OUT :String = "MY_SOCKET_TIME_OUT";
		//心跳数据错误事件名
		public static const SOCKET_DATA_HEART_ERROR :String= "MY_SOCKET_HEART_ERROR";
		//服务端发来的包头标志错误事件名
		public static const SOCKET_DATA_HEAD_ERROR :String= "MY_SOCKET_MSG_HEAD_ERROR";
		
		public function SocketEvent(type: String, data: Object = null, bubbles: Boolean = false, cancelable: Boolean = false) 
		{
			super(type, bubbles, cancelable);
			this.addData("socketEvent", data);
		}
		
	}

}